import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/basic/track/',
    method: 'GET',
    params: query
  })
}

export function updateData(query) {
  return request({
    url: '/basic/track/',
    method: 'POST',
    data: query
  })
}

export function deleteData(query) {
  return request({
    url: `/basic/track/${query}`,
    method: 'DELETE'
  })
}

// 不分页列表
export function getListAll(query) {
  return request({
    url: `/basic/track/listAll`,
    method: 'GET',
    params: query
  })
}

export function getTrackCode(query) {
  return request({
    url: `/basic/track/getTrackCode`,
    method: 'GET',
    params: query
  })
}
